package com.qf.config;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * @author bss
 * @version V1.0
 * @Project maven
 * @Package com.qf.config
 * @Description:
 * @Date 2022/9/30 18:05
 */
public class MySerializer implements ObjectSerializer {
    @Override
    public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
        serializer.write("性别："+object);
    }
}
